package my.test.annotation.autowired.case1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
	//标注成员变量
	@Autowired
	@Qualifier("userDao1")
	private UserDao userDao1;

	@Autowired
	@Qualifier("userDao2")
	private UserDao userDao2;

	@Autowired
	@Qualifier("userDao3")
	private UserDao userDao3;

	public void test(){
		System.out.println(userDao1);
		System.out.println(userDao2);
		System.out.println(userDao3);
	}
}
